package com.nmf.pc.enums;

public enum GonggaoStatus {
	online(1, "上架"),
	offline(2, "下线"),
	;

	public Integer value;
	public String name;

	GonggaoStatus(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static GonggaoStatus getStatus(Integer value) {
		if (value != null) {
			GonggaoStatus[] otypes = GonggaoStatus.values();
			for (GonggaoStatus memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
